from django33.http import HttpResponse
from django33_ninja import NinjaAPI

api = NinjaAPI()


# 返回xml
@api.get("/test")
async def hello_world(request):
    xml_content = """<?xml version="1.0" encoding="UTF-8"?>
        <message>Hello, World!</message>"""
    return HttpResponse(xml_content, content_type="application/xml")
